package com.xm.settlement.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.xm.settlement.commons.utils.JsonUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2017/3/2.
 */
public class AppOrderManage implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;


    /** 订单编码*/
    @TableField(value = "goods_id" )
    private String goodsId;


    /** 订单编码*/
    @TableField(value = "order_code" )
    private String orderCode;

    /** 商品编码*/
    @TableField(value = "goods_code")
    private Long goodsCode;

    /** 商品名称*/
    @TableField(value = "goods_name" )
    private String goodsName;

    /** 商品价格*/
    @TableField(value = "goods_price")
    private Double goodsPrice;

    /** 商品数量*/
    @TableField(value = "goods_num")
    private Integer goodsNum;

    /** 商品总价*/
    @TableField(value = "goods_tprice")
    private Double goodsTprice;

    /** 收件人姓名*/
    @TableField(value = "rece_name" )
    private String receName;

    /** 收件人电话*/
    @TableField(value = "rece_tel" )
    private Long receTel;

    /** 收件地址*/
    @TableField(value = "rece_address" )
    private String receAddress;

    @TableField(value = "create_time")
    private Date createTime;

    /** 创建人 */
    @TableField(value = "create_id")
    private Long createId;

    @TableField(value = "update_time")
    private Date updateTime;

    /** 修改人 */
    @TableField(value = "update_id")
    private Long updateId;

    /** 是否可查询(1.是 0.否) */
    @TableField(value = "is_query")
    private Integer isQuery;

    /** 备用 */
    @TableField(value = "by1")
    private Integer by1;

    @TableField(value = "by2")
    private String by2;

    @TableField(value = "by3")
    private Date by3;

    /** 订单状态(0.正常 1.已收货 2.退货 3.换货 4.取消)*/
    // 5.发货
    @TableField(value = "order_status")
    private Integer orderStatus;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Long getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(Long goodsCode) {
        this.goodsCode = goodsCode;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getReceName() {
        return receName;
    }

    public void setReceName(String receName) {
        this.receName = receName;
    }

    public Long getReceTel() {
        return receTel;
    }

    public void setReceTel(Long receTel) {
        this.receTel = receTel;
    }

    public String getReceAddress() {
        return receAddress;
    }

    public void setReceAddress(String receAddress) {
        this.receAddress = receAddress;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    public Integer getIsQuery() {
        return isQuery;
    }

    public void setIsQuery(Integer isQuery) {
        this.isQuery = isQuery;
    }

    public Integer getBy1() {
        return by1;
    }

    public void setBy1(Integer by1) {
        this.by1 = by1;
    }

    public String getBy2() {
        return by2;
    }

    public void setBy2(String by2) {
        this.by2 = by2;
    }

    public Date getBy3() {
        return by3;
    }

    public void setBy3(Date by3) {
        this.by3 = by3;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Double getGoodsTprice() {
        return goodsTprice;
    }

    public void setGoodsTprice(Double goodsTprice) {
        this.goodsTprice = goodsTprice;
    }

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
}
